<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN" 
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping package="org.springside.modules.security.domain">
	<!-- 适用人员表 -->
    <class name="SystemWorkHourUser" table="system_workhour_user">
      <id name="id" type="integer">
            <column name="id" />
            <generator class="native" >
				         <param name="sequence">SYSTEMWORKHOUR_USER_ID_SEQ</param>
            </generator>
        </id>
        <!--对应班组信息-->
		<many-to-one name="systemWorkhour" column="system_workhour_id"
			class="SystemWorkhour" />
		<!-- 对应人员 -->
		<many-to-one name="user" column="user_id"
			class="User" />
         
    </class>
</hibernate-mapping>
